﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using T.AuditField;

namespace T.Contract.Domain.T.Contract.Model
{
    [Table("ContractModel")]
    public class ContractModel: AuditFields
    {
        [Key]
        public int ContractId { get; set; }//主键id
        public string? CompanyID { get; set; }//公司id
        public int ?User_Id { get; set; }//用户Id`
        public string ?ContractNumber { get; set; }//合同编号
        public string? ContractTitle { get; set; }//合同标题
        public string? Unit { get; set; }//单位
        public string? PersonCharge { get; set; }//负责人
        public int ?LineId { get; set; }//线路id
        public string? LineName { get; set; }//线路名称
    public decimal? TonPrice { get; set; }//吨运价
        public int ?Ton { get; set; }//包车条件吨位
        public decimal? CharteredBusPrice { get; set; }//包车金额
        public string? Attn { get; set; }//经办人
        public DateTime? DateofSigning { get; set; }//签订时间
        public decimal? ContractAmount { get; set; }//合同金额
        public string? ContractNote { get; set; }//合同标的或项目说明
        public string? ContractTerms { get; set; }//合同主要条款/变更条款
        public string? ContractText { get; set; }//合同文本
        public int? CcontractStatus { get; set; }//合同状态（待提交1、待审批2、已通过3、已拒绝4）
        public string? Approver { get; set; }//审批人
        public string? ContractType { get; set; }//通用合同类别
        public int?ContractClassification { get; set; }//合同分类（货主1、外协2、通用3）
        public string? Abnormalalarms { get; set; }//异常报警
        /// <summary>
        /// 1、未起运 2、运输中 3、已完成  
        /// </summary>
        public string? Shipmentstatus { get; set; } //货运状态


        public string? line { get; set; }//货运线路
        public string? longitude { get; set; }//货运经度
        public string? latitude { get; set; }//货运纬度



    }
}
